<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
${include("../common/_common.html#head",["title":"用户管理"])}
<script type="text/javascript" src="${path}/admin/js/user.js"></script>
<script type="text/javascript" src="${path}/admin/js/iframe.js"></script>
<script type="text/javascript" src="${path}/js/jquery-html5Validate.js"></script>
<script type="text/javascript" src="${path}/js/checkbox/jquery-hcheckbox.js"></script>
<script type="text/javascript" src="${path}/js/zTree/jquery.ztree.3.5.min.js"></script>
<link type="text/css" rel="stylesheet"  href="${path}/js/checkbox/css.css"></link>
<link type="text/css" rel="stylesheet" href="${path}/js/zTree/zTreeStyle.css"/>
</head>
<body class="right_body">
	<div class="body">
		<div class="top_subnav">J4CMS内容管理平台 ＞ 用户管理</div>
		<div class="title_h2">
			搜索
		</div>
		<p class="line" style="margin-top:0;">
		</p>
		<form action="search" method="post" enctype="application/x-www-form-urlencoded">
		<div class="filed fl">
			<label>关键词：</label>
			<input type="text" class="text" size="20" name="search" value="${search}"/>
		</div>
		<div class="filed fl">
			<label>角色：</label>
			<select name="role" id="role" style="margin-left: 50px;margin-right: 20px;">
				<option value="0">请选择角色</option>
				#for(SysRole r : roles)
				<option value="${r.get('id')}" ${r.getInt('id')==role.toInt ?"selected":""}>${r.get('name')}</option>
				#end
			</select>
		</div>
		<div class="filed fl">
			<button class="button" type="submit"></button>
		</div>
		</form>
        <div class="tablelist">
		<table class="table">
			<tr>
			<th colspan="9" class="top_th">
			<a href="javascript:;" class="add" id="add"><em>添加</em><span></span></a>
			<a href="javascript:;" class="edit" id="edit"><em>编辑</em><span></span></a>
			</th>
			</tr>
			<tr class="title">
			<th style="width:10px;"><input id="chkAll" name="ids" type="checkbox"/><label></label></th><th>编号</th><th>用户名</th><th>邮箱</th><th>角色</th><th>性别</th><th>最近登录</th><th>创建时间</th><th>状态</th><th>操作</th>
			</tr>
			#set(Page<SysUser> users)
			#for(SysUser u : users.getList())
				<tr>
					<td><input name="id" type="checkbox" value="${u.get('id')}"/><label></label></td>
					<td>${u.get('id')}</td><td>${u.get('username')}</td><td>${u.get('email')}</td>
					<td>${u.get('role_name')}</td><td>${u.get('sex')=='0'?'男':'女'}</td>
					<td>${u.get('last_login')}</td><td>${u.get('create_time')}</td>
					<td>${u.get('status')=="-1"?"删除":"正常"}</td>
					<td><a href="javascript:;" class="resetpwd" data-input="${u.get('id')}">重置密码</a>|<a  href="javascript:;" class="delete" data-input="${u.get('id')}">删除</a></td>
				</tr>
			#end
		</table>
        </div>
		<div class="page">
			${pageStr}
		</div>
	</div>
</body>
</html>
